package com.gdkj.dto;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Field;

import javax.persistence.Id;

/**
 * es信息存储
 *
 * @author: zw
 * @create: 2022-04-28 14:11
 **/
@Data
public class EsUserDto {

    @Id
    private Long esId;

    @Field
    private Long id;

    @Field(name = "user_number")
    private String userNumber;

    @Field(name = "user_login")
    private String userLogin;

    @Field(name = "user_nicename")
    private String nickname;

    @Field(name = "user_email")
    private String userEmail;

    @Field(name = "user_url")
    private String userUrl;

    private String avatar;

    @Field(name = "avatar_thumb")
    private String avatarThumb;

//    @Field(name = "birthday", type = FieldType.Keyword)
    private String birthday;

    private String sex;
    private String signature;

    @Field(name = "create_time")
    private String createTime;

    @Field(name = "create_time_int")
    private Long createTimeInt;

    @Field(name = "user_type")
    private Integer userType;

    @Field(name = "user_status")
    private Integer userStatus;

    private String mobile;

    @Field(name = "login_type")
    private String loginType;
    private String province;
    private String city;

    @Field(name = "iszombiep")
    private Integer isRobot;

    @Field(name = "ishot")
    private Integer isHot;

    private String source;

    private String location;

    @Field(name = "userFrom")
    private String userFrom;

    @Field(name = "issuper")
    private Integer isSuper;

    @Field(name = "isrecommend")
    private Integer isRecommend;

    private String liang;

    @Field(name = "fans_num")
    private Integer fansNum;

    private String channel;
    /**
     * 用户注销状态 1 未注销 2 注销中
     */
    private Integer state;

    private String last_login_time;

    private String last_login_ip;

    /**
    * 更新时间
    */
    private Long updated_at;
}
